
  
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .text {
    cursor: pointer;
    font-size: 2rem;
    margin-left: 10px;
    font-family: 'Righteous', cursive;
    color: red;
    font-weight: 600;
  }
  
  .toggle-button {
    position: relative;
    
    width: 100px;
    height: 50px;
    margin: 0;
  
    vertical-align: top;
  
    background: #ffffff;
    border: 1px solid #bbc1e1;
    border-radius: 30px;
    outline: none;
    cursor: pointer;
  
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
      
    transition: all 0.3s cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  
  .toggle-button::after {
    content: "";
    
    position: absolute;
    left: 3px;
    top: 1.5px;
    
    width: 45px;
    height: 45px;
    background-color: blue;
    border-radius: 50%;
    
    transform: translateX(0);
    
    transition: all 0.3s cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  
  .toggle-button:checked::after {
    transform: translateX(calc(100% + 3px));
    background-color: #fff;  
  }
  
  .toggle-button:checked {
    background-color: blue;
  }